package cn.stylefeng.guns.unitl;

public enum SysErrorCode implements IErrorCode{


    UPLOAD_ERROR(10002,"图片上传失败"),
    FILE_ERROR(10002,"文件格式错误，上传失败");


    private Integer code;

    private String desc;

    SysErrorCode(Integer code, String desc) {
        this.setCode(code);
        this.setDesc(desc);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "[" + this.code + "]" + this.desc;
    }








}
